package com.hyts.dess.atom.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * project-name:dess
 * package-name:com.hyts.dess.web
 * author:Libo/Alex
 * create-date:2019-06-20 10:52
 * email:liboware@gmail.com
 * description:此类主要用于: 访问操作控制器
 */
@Controller

public class AccessController {

    @Value("${spring.application.name:dess-atom}")
    String application;


    @GetMapping({"/login"})
    public String login(Model model){
        model.addAttribute("application",application);
        return "login";
    }


    public static void main(String[] args){

    }
}
